package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Employee;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {
    //登录验证 =>查询账号密码
    Employee findByUsername(String username);


    // 查询员工列表
    List<Employee> findList(String name);

    //添加新员工
    void save(Employee employee);


    //编辑修改之前前 回显
    Employee findById(long id);

    //修改
   // int updateById(Employee employee);
   // void updateById(Employee employee);
}
